import base64
import json

# 假设你的响应内容保存在 response.json 文件中
with open('response.json', 'r', encoding='utf-8') as f:
    resp = json.load(f)

# 提取 data 字段
b64_data = resp['data']

# 解码并保存为 mp3
with open('output.mp3', 'wb') as f:
    f.write(base64.b64decode(b64_data))